package com.innovation.wjrpc.codec.impl;

import com.alibaba.fastjson.JSON;
import com.innovation.wjrpc.codec.Decoder;

/**
 * @author innoyiya
 * @date 2021/9/7 19:37
 */
public class JSONDecoder implements Decoder {

    @Override
    public <T> T decode(byte[] bytes, Class<T> clazz) {
        return JSON.parseObject(bytes, clazz);
    }
}
